package com.team.lostProperty.service;

import com.team.lostProperty.entity.Comments;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author kittlen
 * @version 1.0
 * @date 2020/7/22 19:02
 */

public interface CommentsService {

    //获取评论总条数
    int getAllCount(@Param("status")int status);

    //获取评论
    List<Comments> getComments(@Param("status")int status, @Param("page")int page, @Param("limit")int limit);

    //根据条件查询评论
    List<Comments> selectComments(Comments comments);

    //根据id删除评论
    int deleteComments(int id);

    //根据id修改审核状态
    int updateComments(int status,long commentsId);

    //根据发布信息id获取数据
    List<Comments> selectByPushInfoId(Long pushInfoId);

    Comments insertComment(long userId,long pushInfoId,String createdDate,String content);
}
